import Vue from 'vue'
import Router from 'vue-router'

import Index from '@/pages/index/Index'
import Receive from '@/pages/index/Receive'
import Send from '@/pages/index/Send'

import AirIndex from '@/pages/air-index/index'
import TavelIntro from '@/pages/air-index/travel-intro'

import Success from '@/pages/paystatus/Success'
import Fail from '@/pages/paystatus/Fail'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  linkActiveClass: 'v-link-active',
  routes: [
    {
      path: '/',
      component: Index,
      meta: {title: '首页'},
      children: [
        {path: '/', component: Receive, name: 'indexBefore', meta: {title: '要客服务'}}
      ]
    },
    {
      path: '/air',
      component: Index,
      meta: {title: '要客服务'},
      children: [
        {path: '/receive', component: Receive, name: 'Receive', meta: {title: '要客服务'}},
        {path: '/send', component: Send, name: 'Send', meta: {title: '要客服务'}}
      ]
    },
    {path: '/air-index', component: AirIndex, meta: {title: '耀莱出行'}},
    {path: '/travel-index', component: TavelIntro, meta: {title: '耀莱出行介绍'}},
    {path: '/success/:ids', component: Success, meta: {title: '支付成功'}},
    {path: '/fail/:ids', component: Fail, meta: {title: '支付失败'}}
  ]
})

